package BlogTest.Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zhongyisheng
 * Date: 2024-07-03
 * Time: 18:49
 */
public class Dog extends Animal{

    public void bark() {
        System.out.println(this.name + " 汪汪汪！");
    }

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
